#include "bsp_device.h"

device_state_t g_device_state;

device_state_t * get_device_state(void)
{
	return &g_device_state;
}

void set_device_paper(paper_state_e state)
{
	g_device_state.paper_state=state;
}

void set_device_print(print_state_e state)
{
	g_device_state.print_state=state;
}

void set_ble_finish(bool state)
{
	g_device_state.ble_finish=state;
}

void bsp_device_init(void)
{
	memset(&g_device_state,0,sizeof(g_device_state));
	g_device_state.battery = 100;
	g_device_state.ble_finish = false;
	g_device_state.paper_state = PAPER_STATE_NORMAL;
	g_device_state.print_state = PRINT_STATE_INIT;
	g_device_state.temperature = 30;
}

